import { useRoutes } from 'react-router-dom'
import routes from '@/router'
import { Suspense } from 'react'
import { Spin } from 'antd'
import './App.scss'

export default function App() {
  const element = useRoutes(routes)
  return (
    <div className="app">
      <Suspense fallback={
        <div className="lazyLoad">
          <Spin size="large" tip="玩命加载中..." />
        </div>
      }>
        {element}
      </Suspense>
    </div>
  )
}

